package cn.itsource.wechat.bean;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : 张金铭
 * @description :
 * @create :2022-11-18 17:53:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_wxuser")
public class WeChatUser {
    private Long id;
    private String openid;//加密的微信号
    private String nickname;//微信昵称
    private Integer sex;//性别（1：男；2女；3未知）
    private String address;
    private String headimgurl;//头像
    private String unionid;//

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long userId;//与user表绑定的用户id
}
